package cn.itsource.service.blog;


import cn.itsource.blog.domain.article.Article;
import cn.itsource.blog.domain.article.ArticleDto;
import cn.itsource.blog.domain.article.CountTime;
import cn.itsource.blog.domain.article.DivTime;
import cn.itsource.blog.query.article.ArticleQuery;
import cn.itsource.head.ColPic;
import cn.itsource.head.PiePic;
import com.github.pagehelper.PageInfo;
import io.minio.errors.*;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.List;

public interface IArticleService {
    List<Article> selectAll();

    void delete(Integer id) throws ServerException, InvalidBucketNameException, InsufficientDataException, ErrorResponseException, IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;



    Article get(Integer id);

    void update(Article article);

    void deleteMore(Long[] ids);

    PageInfo<Article> queryArticle(ArticleQuery articleQuery);

    List<ArticleDto> selectDto();

    List<PiePic> selectPie();

    List<ColPic> selectCol();

    List<CountTime> selectTime();

    List<DivTime> selectDiv(CountTime countTime);

    Article selectOne(Integer id);

    Article selectDepend(Integer id);

    void readUp(Article article);


}
